package com.jxau.mall.order.controller;

import com.jxau.mall.common.util.ResponseVO;
import com.jxau.mall.order.model.OrderVO;
import com.jxau.mall.order.service.IOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 订单表 前端控制器
 * </p>
 *
 * @author guojiani
 * @since 2025-04-28
 */
@RestController
@RequestMapping("/order")
public class OrderController {
    @Autowired
    private IOrderService orderService;
    @PostMapping("/save")
    public ResponseVO save(@RequestBody OrderVO orderVO) throws Exception {
        orderService.save(orderVO);
        return ResponseVO.success();
    }}
